<%@ page language="java"  pageEncoding="UTF-8" %>
<%@include file="/WEB-INF/jsp/common/taglibs.jsp"%>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>无标题文档</title>
</head>
<script type="text/javascript">
function do_select(){
$("#form1").submit();
}
</script>
<body style="font-size:14px;">
<div class="main-content1">
<div class="page-content">
<div class="row"><div class="col-xs-12">
							<!-- PAGE CONTENT BEGINS -->
							<div class="tab-content no-border padding-0">
								<!--查询区域-->	<div id="faq-tab-1" class="tab-pane fade in active">
								<form id="form1" action="forwardMenuChildrenList.htm" method="post">
								<table width="100%" border="0">
  <tr>
  
    <td width="9%" align="right" nowrap="nowrap"><strong>菜单名称：<input type="hidden" id="parentCode" name="parentCode" value="${menu.parentCode}" /></strong></td>
    <td width="22%">
      <input name="menuName" type="text" id="menuName" value="${menu.menuName}">    </td>
    <td width="6%" align="right" nowrap="nowrap"><strong>状态：</strong></td>
    <td width="24%" ><select name="status" >
      <option value="" <c:if test="${menu.status == ''}">selected</c:if>>全部</option>
      <option value="0" <c:if test="${menu.status == '0'}">selected</c:if>>停用</option>
      <option value="1" <c:if test="${menu.status == '1'}">selected</c:if>>启用</option>
    </select>
    </td>
    <td width="39%"><button onclick="do_select()"    class="btn btn-sm btn-info" type="button"><i class="ace-icon glyphicon glyphicon-search bigger-110"></i>
																	查 询
				</button>
				
				<button class="btn btn-sm btn-warning" type="button" onclick="location.href='toAddMenu.htm?menuCode=${menu.parentCode}'"><i class="ace-icon glyphicon glyphicon-plus bigger-110"></i>
																	新增				</button>
				</td>
  </tr>
</table></form>

								</div>
								<!--查询区域end-->
							
									<div id="faq-tab-1" class="tab-pane fade in active">
									

							
										
<!--查询结果-->
<div style="overflow-x:auto;  margin-top:10px">
  <table id="sample-table-1" class="table table-striped table-bordered table-hover" style="margin:0; "  >
    <thead>
      <tr>
        <th nowrap="nowrap" class="center"> 序号 </th>
		 <th nowrap="nowrap" >菜单代码</th>
        <th nowrap="nowrap" >菜单名称</th>
        <th nowrap="nowrap" >菜单路径</th>
        <th nowrap="nowrap" >描述</th>
        <th nowrap="nowrap">状态</th>
        <th nowrap="nowrap">操作</th>
      </tr>
    </thead>
    <tbody>
    <c:forEach items="${menus}" var="menu" varStatus="status"> 
       <tr>
        <td class="center"><label class="position-relative"> ${ status.index + 1} </label>        </td>
        <td>${menu.menuCode}</td>
        <td>${menu.menuName} </td>
		<td>${menu.url}</td>
        <td>${fn:substring(menu.remark,0,20)}</td>
        <!--<td>${menu.remark}</td>-->
        <td align="center" nowrap="nowrap" >
         <c:if test="${menu.status == 1}">
              启用
           </c:if>   
           <c:if test="${menu.status == 0}">
              停用
           </c:if>  
        </td>
        <td align="center"><a href="#" onclick="location.href='toEditMenu.htm?menuCode=${menu.menuCode}'">修改</a></td>
      </tr>
    </c:forEach> 
    </tbody>
  </table>
</div>
								
<!--查询结果end-->
									</div>
									
						  </div>
						
</div>
						
						</div>

</div>

</div>	

	<body class="no-skin" >
		
</body>
</html>
